.class Lcom/waiqin365/lightapp/kaoqin/view/d;
.super Lcom/waiqin365/lightapp/kaoqin/d/a;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;DLandroid/widget/EditText;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-direct {p0, p2, p3, p4, p5}, Lcom/waiqin365/lightapp/kaoqin/d/a;-><init>(DLandroid/widget/EditText;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 12

    const-wide/32 v10, 0x5265c00

    const/16 v4, 0x8

    const-wide/16 v0, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/d/a;->afterTextChanged(Landroid/text/Editable;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Z

    move-result v2

    if-eqz v2, :cond_9

    :try_start_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v2}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v2

    if-ne v2, v4, :cond_1

    const-string/jumbo v2, "0"

    move-object v3, v2

    :goto_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b:Landroid/widget/RelativeLayout;

    invoke-virtual {v2}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v2

    if-ne v2, v4, :cond_2

    const-string/jumbo v2, "0"

    move-object v5, v2

    :goto_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v2}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v2

    if-ne v2, v4, :cond_3

    const-string/jumbo v2, "0"

    move-object v4, v2

    :goto_2
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_4

    move-wide v2, v0

    :goto_3
    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v6

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_5

    move-wide v2, v0

    :goto_4
    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_6

    :goto_5
    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-virtual {v6}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v4

    invoke-virtual {v2}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    add-double/2addr v4, v8

    invoke-virtual {v3}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    add-double/2addr v4, v8

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Ljava/lang/Double;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->setTotleTimeCount(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/lang/StringBuffer;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/util/Date;

    move-result-object v2

    const-string/jumbo v4, "yyyy-MM-dd"

    invoke-static {v2, v4}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "#"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-virtual {v2, v6}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Ljava/lang/Double;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_7

    new-instance v0, Ljava/util/Date;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->b(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    add-long/2addr v4, v10

    invoke-direct {v0, v4, v5}, Ljava/util/Date;-><init>(J)V

    new-instance v1, Ljava/util/Date;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->d(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    sub-long/2addr v4, v10

    invoke-direct {v1, v4, v5}, Ljava/util/Date;-><init>(J)V

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-static {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-static {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    if-eqz v0, :cond_7

    if-eqz v2, :cond_7

    :goto_6
    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v6

    cmp-long v1, v4, v6

    if-gtz v1, :cond_7

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/lang/StringBuffer;

    move-result-object v1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, "yyyy-MM-dd"

    invoke-static {v0, v5}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, "#1"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/util/Date;

    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    add-long/2addr v4, v10

    invoke-direct {v1, v4, v5}, Ljava/util/Date;-><init>(J)V

    move-object v0, v1

    goto :goto_6

    :cond_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->j:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    move-object v3, v2

    goto/16 :goto_0

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->i:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    move-object v5, v2

    goto/16 :goto_1

    :cond_3
    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->k:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    move-object v4, v2

    goto/16 :goto_2

    :cond_4
    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    goto/16 :goto_3

    :cond_5
    invoke-static {v5}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    goto/16 :goto_4

    :cond_6
    invoke-static {v4}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v0

    goto/16 :goto_5

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->c(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/lang/StringBuffer;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->d(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;)Ljava/util/Date;

    move-result-object v2

    const-string/jumbo v4, "yyyy-MM-dd"

    invoke-static {v2, v4}, Lcom/waiqin365/lightapp/kaoqin/f/a;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "#"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Ljava/lang/Double;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_8
    :goto_7
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/NumberFormatException;->printStackTrace()V

    goto :goto_7

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/view/d;->a:Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;->a(Lcom/waiqin365/lightapp/kaoqin/view/CustomQingjiaDateSpiltView;Z)Z

    goto :goto_7
.end method
